package com.ruibang.glass.material.feign;

import com.ruibang.glass.common.domain.produce.BucketShipmentRecord;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

@Component
@FeignClient("glass-produce")
public interface ProduceApi {
    @PostMapping("/api/glass/produce/pl/bucketShipmentRecord/save")
    @ApiOperation(value = "新增", response = ResultBody.class)
    ResultBody<String> save(@RequestBody BucketShipmentRecord bucketShipmentRecord);

    @GetMapping("/api/glass/produce/pl/bucketShipmentRecord/getById/{id}")
    @ApiOperation(value = "根据ID获取详情", response = ResultBody.class)
    ResultBody<BucketShipmentRecord> getById(@PathVariable("id") String id);

    @PutMapping("/api/glass/produce/pl/bucketShipmentRecord/edit")
    @ApiOperation(value = "编辑", response = ResultBody.class)
    ResultBody edit(@RequestBody BucketShipmentRecord bucketShipmentRecord);
}
